package com.meida.module.bus.provider.controller;

import com.meida.common.mybatis.model.ResultBody;
import com.meida.common.springmvc.base.BaseController;
import com.meida.module.bus.client.entity.srmapi.basedata.SrmWbsarchitecture;
import com.meida.module.bus.provider.service.SrmMaterialService;
import com.meida.module.bus.provider.service.SrmWbsarchitectureService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


/**
 * srmWBS信息控制器
 *
 * @author flyme
 * @date 2020-12-21
 */
@RestController
@RequestMapping("/bus/wbsarchitecture/")
public class SrmWbsarchitectureController extends BaseController<SrmWbsarchitectureService, SrmWbsarchitecture> {
    @Autowired
    private SrmMaterialService srmMaterialService;
    @ApiOperation(value = "srmWBS信息分页-列表", notes = "srmWBS信息分页列表")
    @GetMapping(value = "page")
    public ResultBody pageList(@RequestParam(required = false) Map params) {
        return bizService.pageList(params);
    }

    @ApiOperation(value = "srmWBS信息-列表", notes = "srmWBS信息列表")
    @GetMapping(value = "list")
    public ResultBody list(@RequestParam(required = false) Map params) {
        return bizService.listEntityMap(params);
    }


}
